<?php

namespace App;

class FriendlyLink extends Base
{
    protected $table = 'friendly_link';

    protected $fillable = ['title', 'sort', 'is_show','url'];

    const IS_SHOW = [
        0 => '不显示前台',
        1 => '显示前台',
    ];

    public function isShow()
    {
        return self::IS_SHOW[$this->is_show];
    }
}
